﻿using System;

namespace DCIMAP.GANS.GeneticAlgorithms.Legacy
{
    
    [Serializable]
    public class StringArrayGene : ArrayGene
    {
        
        private readonly string[] code;

        
        public StringArrayGene(int length)
        {
            code = new string[length];
        }

        
        public string[] StringCode
        {
            get { return code; }
        }

        /// <inheritdoc/>
        public override Array Code
        {
            get { return code; }
        }

        /// <inheritdoc/>
        public override Gene CreateEmpty()
        {
            return new StringArrayGene(code.Length);
        }
    }
}